home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Direct Draw 2.xpl < prev    next >
Text File  |  2003-11-19  |  4KB  |  96 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Program Options\Built in Windows Apps\DirectX"
  5. "NAME"="Direct Draw 2"
  6. "OSVERSION"="1011111"
  7. "VERSION"="1.03"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="DisableInactivate"
  10. "TEXT 2"="ShowFrameRate"
  11. "TEXT 3"="ModeXOnly"
  12. "TEXT 4"="EmulationOnly"
  13. "TEXT 5"="DisableAGPSupport"
  14. "DESCRIPTION 1"="Enables [Checked Box] or disables [Cleared Box] Multi-Monitor Debugging for troubleshooting purposes, if using a dual-monitor head capable video controller."
  15. "DESCRIPTION 2"="Enables [Checked Box] or disables [Cleared Box] the display of frame rate for 3D apps/games that support this feature (Not many), and available only on 3D video cards. Note that this setting (When available) may slightly reduce your frame rates. If your Application/Game doesn't support this then check http://www.fraps.com"
  16. "DESCRIPTION 3"="Enables [Cleared Box] or disables [Checked Box] ModeX support for 320x200 (EGA) on older/slower video cards that may present incompatibilities in this low resolution mode."
  17. "DESCRIPTION 4"="Enables [Checked Box] or disables [Cleared Box] Software Emulation Layer (SEL) for slower performance but better stability on older/slower (i.e. 2D only) video cards. Modern AGP/PCI 3D video cards use the Hardware Abstraction Layer (HAL) by default, thus it is recommended to disable this setting for maximum "velocity". :)."
  18. "DESCRIPTION 5"="Enables [Cleared Box] or disables [Checked Box] AGP Support, ONLY IF supported by motherboard, video hardware AND video driver."
  19. "AUTHOR"="Ojatex@aol.com"
  20. "CONTACTURL"="http://members.aol.com/ojatex/"
  21. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  22. "COMMENT 1"=" "
  23. "COMMENT 2"="These tweaks for Direct Draw courtesy of Axcel216@aol.com. See http://users.aol.com/axcel216/newtip18.htm#DXTWK."
  24.  
  25.  
  26. Sub Plugin_Initialize 
  27.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\DisableInactivate")
  28.  if i=1 then SetUIElement 1,true
  29.  
  30.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\ShowFrameRate")
  31.  if i=1 then SetUIElement 2,true
  32.  
  33.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\ModeXOnly")
  34.  if i=1 then SetUIElement 3,true
  35.  
  36.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\EmulationOnly")
  37.  if i=1 then SetUIElement 4,true
  38.  
  39.  i=RegReadValue("HKLM\Software\Microsoft\DirectDraw\DisableAGPSupport")
  40.  if i=1 then SetUIElement 5,true
  41. End Sub
  42.  
  43.  
  44. Sub Plugin_CheckData(ElementIndex)
  45. End Sub
  46.  
  47.  
  48.  
  49. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  50.  b=GetUIElement(1)
  51.  if b=true then
  52.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\DisableInactivate","1",2)
  53.  else
  54.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\DisableInactivate","0",2)
  55.  end if
  56.  
  57. b=GetUIElement(2)
  58.  if b=true then
  59.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ShowFrameRate","1",2)
  60.  else
  61.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ShowFrameRate","0",2)
  62.  end if
  63.  
  64.  b=GetUIElement(3)
  65.  if b=true then
  66.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ModeXOnly","1",2)
  67.  else
  68.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\ModeXOnly","0",2)
  69.  end if
  70.  
  71. b=GetUIElement(4)
  72.  if b=true then
  73.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\EmulationOnly","1",2)
  74.  else
  75.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\EmulationOnly","0",2)
  76.  end if
  77.  
  78. b=GetUIElement(5)
  79.  if b=true then
  80.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\DisableAGPSupport","1",2)
  81.  else
  82.   Call RegWriteValue("HKLM\Software\Microsoft\DirectDraw\DisableAGPSupport","0",2)
  83.  end if
  84.  
  85.  
  86.  
  87.  
  88. End Sub
  89.  
  90.  
  91. Sub Plugin_Terminate 
  92. End Sub
  93.  
  94.  
  95.  
  96.